#include "EffectBase.h"



EffectBase::EffectBase()
{
	mPlayingState = ASS_INACTIVE;
}
EffectBase::~EffectBase()
{

}

void EffectBase::init(SceneManager * _m, Camera* _c)
{
	m_pSceneMgr = _m;
	m_pCamera = _c;
}
void EffectBase::load()
{

}
void EffectBase::update(Ogre::Real timeSinceLast)
{

}
void EffectBase::begin()
{
	mPlayingState = ASS_STARTED;
}
void EffectBase::stop()
{
	mPlayingState = ASS_INACTIVE;
}

void EffectBase::setEnabled(bool _e)
{
	mEnabled = _e;
}

void EffectBase::eventClick(int _xx, int _yy)
{

}
void EffectBase::eventMouseMove(int _x, int _y, int _xRel, int _yRel, bool isButtonDown)
{

}
void EffectBase::eventMouseRelease(int _xx, int _yy)
{

}
void EffectBase::stateMouseDown(int _x, int _y, int _xRel, int _yRel, bool isButtonDown)
{

}

Real EffectBase::vanishFunction_Linear(Real x, Real a, Real b)
{
	return a * x + b;
}

Real EffectBase::vanishFunction_Parabola(Real x, Real a, Real b, Real c)
{
	return a * x * x + b * x + c;
}

Real EffectBase::vanishFunction_Triangular(Real x, Real a, Real b)
{
	return a * Ogre::Math::Sin(x) + b * Ogre::Math::Cos(x);
}